package com.lms.desiginmode.singleton;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-12-10 14:21
 * @Description:  懒汉式：线程不安全、懒加载
 */
public class SingletonObject1 {
    private static SingletonObject1 instance;

    private SingletonObject1() {
    }

    public static SingletonObject1 getInstance() {
        if (instance == null) {
            return new SingletonObject1();
        }
        return instance;
    }
}
